package com.ruoyi.electronicFence.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 场景-设备/场所关联对象 t_ef_area_equipment
 * 
 * @author sxygsj
 * @date 2024-05-31
 */
public class TEfAreaEquipment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 单位编号 */
    @Excel(name = "单位编号")
    private String unitCode;

    /** 场所Id */
    @Excel(name = "场所Id")
    private String areaId;

    /** 人员卡id */
    @Excel(name = "人员卡id")
    private String equipmentId;

    /** 数据插入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "数据插入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date insertTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUnitCode(String unitCode) 
    {
        this.unitCode = unitCode;
    }

    public String getUnitCode() 
    {
        return unitCode;
    }
    public void setAreaId(String areaId) 
    {
        this.areaId = areaId;
    }

    public String getAreaId() 
    {
        return areaId;
    }
    public void setEquipmentId(String equipmentId) 
    {
        this.equipmentId = equipmentId;
    }

    public String getEquipmentId() 
    {
        return equipmentId;
    }
    public void setInsertTime(Date insertTime) 
    {
        this.insertTime = insertTime;
    }

    public Date getInsertTime() 
    {
        return insertTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("unitCode", getUnitCode())
            .append("areaId", getAreaId())
            .append("equipmentId", getEquipmentId())
            .append("insertTime", getInsertTime())
            .toString();
    }
}
